home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F28670_composeflist.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2001-12-27  |  928 b   |  29 lines

  1. <xsl:stylesheet version="1.0" 
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:msxsl="urn:schemas-microsoft-com:xslt">
  4.   
  5.   <xsl:template name="compose-flist">
  6.     <xsl:param name="pFunList" select="/.."/>
  7.     <xsl:param name="pArg1"/>
  8.     
  9.     <xsl:choose>
  10.       <xsl:when test="not($pFunList)">
  11.         <xsl:copy-of select="$pArg1"/>
  12.       </xsl:when>
  13.       <xsl:otherwise>
  14.         <xsl:variable name="vrtfFunRest">
  15.           <xsl:call-template name="compose-flist">
  16.             <xsl:with-param name="pFunList" select="$pFunList[position() > 1]"/>
  17.             <xsl:with-param name="pArg1" select="$pArg1"/>
  18.           </xsl:call-template>
  19.         </xsl:variable>
  20.         
  21.         <xsl:apply-templates select="$pFunList[1]">
  22.           <xsl:with-param name="pArg1" select="msxsl:node-set($vrtfFunRest)/node()"/>
  23.         </xsl:apply-templates>
  24.       </xsl:otherwise>
  25.     </xsl:choose>
  26.  
  27.   </xsl:template>
  28. </xsl:stylesheet>
  29.